<script>
$(document).ready(function(){
	var data = <?=$bestCustomer?>;
    var plot1 = jQuery.jqplot ('chart1', [data],
		{
    		title:'10 plus gros clients',
			seriesDefaults: {
            // Make this a pie chart.
            	renderer: jQuery.jqplot.PieRenderer,
            	rendererOptions: {
				// Put data labels on the pie slices.
                // By default, labels show the percentage of the slice.
					showDataLabels: true
				}
			},
			legend: { show:true, location: 'e' }
		}
	);
	//bestFournisseur
    var data2 = <?=$bestFournisseur?>;
    var plot2 = jQuery.jqplot ('chart2', [data2],
		{
    		title:'10 plus gros fournisseurs',
			seriesDefaults: {
            // Make this a pie chart.
            	renderer: jQuery.jqplot.PieRenderer,
            	rendererOptions: {
				// Put data labels on the pie slices.
                // By default, labels show the percentage of the slice.
					showDataLabels: true
				}
			},
			legend: { show:true, location: 'e' }
		}
	);
});
</script>

<div id="chart1" style="height:300px; width:100%;"></div>
<div id="chart2" style="height:300px; width:100%;"></div>
		

